package com.reflection;

public class Biology {

    //父类的公开属性
    public double height;

    //父类的私有属性
    private double weight;

    //父类公开的构造方法
    public Biology() {
    }

    //父类私有的构造方法
    private Biology(double height, double weight) {
        this.height = height;
        this.weight = weight;
    }

    //父类公开的普通方法
    public void speak(){
        System.out.println("作为一个生物可以说话");
    }

    //父类私有的普通方法
    private String eatFood(String food){
        System.out.println("生物需要吃东西");
        return food;
    }
}
